package com.zgs.mall.order.feign;

import com.zgs.common.utils.R;
import com.zgs.mall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mall-ware")
public interface WareFeignService {
    /**
     * 查询库存
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/getSkuhasStock")
    public R getSkuhasStock(@RequestBody List<Long> skuIds);
    @PostMapping("/ware/waresku/orderLockStock")
    public R orderLockStock(@RequestBody WareSkuLockVo co);
}
